import { AddFormatFunc, whilelRuleType } from "../types";

AddFormatFunc<whilelRuleType>({

	type: "WHILE",

	handle: (rule, FMC) => {
		return `while(${FMC(rule[1])}){\n${rule[2].map(item => FMC(item)).join("\n")}\n}`;
	},

})
